import request from '@/utils/request'

// 查询工程分类列表
export function listProjectSort(query) {
  return request({
    url: '/tender/projectSort/list',
    method: 'get',
    params: query
  })
}

// 查询工程分类详细
export function getProjectSort(id) {
  return request({
    url: '/tender/projectSort/' + id,
    method: 'get'
  })
}

// 新增工程分类
export function addProjectSort(data) {
  return request({
    url: '/tender/projectSort',
    method: 'post',
    data: data
  })
}

// 修改工程分类
export function updateProjectSort(data) {
  return request({
    url: '/tender/projectSort',
    method: 'put',
    data: data
  })
}

// 删除工程分类
export function delProjectSort(id) {
  return request({
    url: '/tender/projectSort/' + id,
    method: 'delete'
  })
}

// 导出工程分类
export function exportProjectSort(query) {
  return request({
    url: '/tender/projectSort/export',
    method: 'get',
    params: query
  })
}

  /**
   * 工程分类列表
   * @param {*} query 
   */
export function listSortType(query) {
  return request({
    url: '/tender/projectSort/listSortType',
    method: 'get',
    params: query
  })
  
}